<%@page language="java" pageEncoding="UTF-8"%>
<%@page import="org.firecloud.h5fun.model.javabean.*"%>
<%@page import="org.firecloud.h5fun.model.CommonConfig"%>
<%@page import="java.util.List"%>
<%
	CommonConfig webconfig = (CommonConfig) request.getServletContext().getAttribute("commonConfig");
%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="css/common.css" type="text/css" rel="stylesheet" />
<link href="css/icon.css" type="text/css" rel="stylesheet" />
<link href="/favicon.ico" rel="shortcut icon" />
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/spirit.js"></script>
<title><%=webconfig.getTitle()%></title>
</head>
<body>
	<div id="spirit-msg">
		<div id="msgs">
		<div class="msg-result">和我说说话吧</div>
		</div>
		<div id="input-msg">
			<input id="input-msg-text" class="height-light-input" type="text">
		</div>
	</div>
	<canvas id="spirit" width="80" height="80"></canvas>
	<div class="doc">
		<jsp:include page="widget-head.jsp" />
		<div id="top" class="main-context">
			<div id="top-image" class="context-image">
				<jsp:include page="widget-projects-image-big.jsp">
					<jsp:param name="dataName" value="new0" />
				</jsp:include>
			</div>
			<div id="top-text" class="shadow-box context-text">
				<jsp:include page="widget-projects-text.jsp">
					<jsp:param name="dataName" value="top0" />
				</jsp:include>
			</div>
			<div class="clear-both"></div>
		</div>
		<%
			@SuppressWarnings("unchecked")
			List<ColumnBean> colums = (List<ColumnBean>) (application.getAttribute("columns"));
			for (ColumnBean column : colums) {
		%>
		<div class="main-context main-context-label">
			<div class="label"><%=column.getName()%></div>
			<div class="main-context">
				<div id="top-image" class="context-image">
					<jsp:include page="widget-projects-image.jsp">
						<jsp:param name="dataName" value='<%=("new" + column.getId())%>' />
					</jsp:include>
				</div>
				<div id="top-text" class="shadow-box context-text">
					<jsp:include page="widget-projects-text.jsp">
						<jsp:param name="dataName" value='<%=("top" + column.getId())%>' />
					</jsp:include>
				</div>
				<div class="clear-both"></div>
			</div>
		</div>
		<%
			}
		%>
		<jsp:include page="widget-foot.jsp" />
	</div>
</body>
</html>
